<script setup>
defineProps({
    control: Object,
    model: Object,
})
</script>

<template>
    <van-field :name="control.id" :label="control.props.label">
        <template #input>
            <van-stepper
                v-model="model[control.id]"
                :disabled="control.props.disabled"
                :max="control.props.max"
                :min="control.props.min"
                :step="control.props.step"
                :default-value="control.props.defaultValue"
                :decimal-length="control.props.precision"
                :placeholder="control.props.placeholder"
                input-width="100px"
            />
        </template>
    </van-field>
</template>
